package study.service;

public class Music {
    public Music() {
        super();
        System.out.println("music的无参构造"+this.toString());
    }
    private Player player2;
    public Music(Player player2){
        this.player2=player2;
        System.out.println("music的有参构造"+this.toString());
    }
    public void play(){
        player2.play();
    }
}
